<?php
$tdatacertificate_of_origin_items=array();
	$tdatacertificate_of_origin_items[".NumberOfChars"]=80; 
	$tdatacertificate_of_origin_items[".ShortName"]="certificate_of_origin_items";
	$tdatacertificate_of_origin_items[".OwnerID"]="";
	$tdatacertificate_of_origin_items[".OriginalTable"]="certificate_of_origin_items";


	
//	field labels
$fieldLabelscertificate_of_origin_items = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelscertificate_of_origin_items["English"]=array();
	$fieldToolTipscertificate_of_origin_items["English"]=array();
	$fieldLabelscertificate_of_origin_items["English"]["id"] = "Id";
	$fieldToolTipscertificate_of_origin_items["English"]["id"] = "";
	$fieldLabelscertificate_of_origin_items["English"]["commercial_id"] = "Commercial";
	$fieldToolTipscertificate_of_origin_items["English"]["commercial_id"] = "";
	$fieldLabelscertificate_of_origin_items["English"]["item_no"] = "Item No";
	$fieldToolTipscertificate_of_origin_items["English"]["item_no"] = "";
	$fieldLabelscertificate_of_origin_items["English"]["marks_and_numbers"] = "Marks And Numbers";
	$fieldToolTipscertificate_of_origin_items["English"]["marks_and_numbers"] = "";
	$fieldLabelscertificate_of_origin_items["English"]["no_of_packages"] = "No Of Packages";
	$fieldToolTipscertificate_of_origin_items["English"]["no_of_packages"] = "";
	$fieldLabelscertificate_of_origin_items["English"]["gross_weight"] = "Gross Weight";
	$fieldToolTipscertificate_of_origin_items["English"]["gross_weight"] = "";
	$fieldLabelscertificate_of_origin_items["English"]["net_weight"] = "Net Weight";
	$fieldToolTipscertificate_of_origin_items["English"]["net_weight"] = "";
	$fieldLabelscertificate_of_origin_items["English"]["Description"] = "Description";
	$fieldToolTipscertificate_of_origin_items["English"]["Description"] = "";
	$fieldLabelscertificate_of_origin_items["English"]["description"] = "Description";
	$fieldToolTipscertificate_of_origin_items["English"]["description"] = "";
	if (count($fieldToolTipscertificate_of_origin_items["English"])){
		$tdatacertificate_of_origin_items[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["commercial_id"] = "Commercial Id";
	$fieldToolTipscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["commercial_id"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["item_no"] = "Item No";
	$fieldToolTipscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["item_no"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["marks_and_numbers"] = "Marks And Numbers";
	$fieldToolTipscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["marks_and_numbers"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["no_of_packages"] = "No Of Packages";
	$fieldToolTipscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["no_of_packages"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["gross_weight"] = "Gross Weight";
	$fieldToolTipscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["gross_weight"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["net_weight"] = "Net Weight";
	$fieldToolTipscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["net_weight"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["Description"] = "Description";
	$fieldToolTipscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["Description"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["description"] = "Description";
	$fieldToolTipscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"]["description"] = "";
	if (count($fieldToolTipscertificate_of_origin_items["Chinese (Hong Kong S.A.R.)"])){
		$tdatacertificate_of_origin_items[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelscertificate_of_origin_items["Chinese (Taiwan)"]=array();
	$fieldToolTipscertificate_of_origin_items["Chinese (Taiwan)"]=array();
	$fieldLabelscertificate_of_origin_items["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipscertificate_of_origin_items["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Taiwan)"]["commercial_id"] = "Commercial Id";
	$fieldToolTipscertificate_of_origin_items["Chinese (Taiwan)"]["commercial_id"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Taiwan)"]["item_no"] = "Item No";
	$fieldToolTipscertificate_of_origin_items["Chinese (Taiwan)"]["item_no"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Taiwan)"]["marks_and_numbers"] = "Marks And Numbers";
	$fieldToolTipscertificate_of_origin_items["Chinese (Taiwan)"]["marks_and_numbers"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Taiwan)"]["no_of_packages"] = "No Of Packages";
	$fieldToolTipscertificate_of_origin_items["Chinese (Taiwan)"]["no_of_packages"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Taiwan)"]["gross_weight"] = "Gross Weight";
	$fieldToolTipscertificate_of_origin_items["Chinese (Taiwan)"]["gross_weight"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Taiwan)"]["net_weight"] = "Net Weight";
	$fieldToolTipscertificate_of_origin_items["Chinese (Taiwan)"]["net_weight"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Taiwan)"]["Description"] = "Description";
	$fieldToolTipscertificate_of_origin_items["Chinese (Taiwan)"]["Description"] = "";
	$fieldLabelscertificate_of_origin_items["Chinese (Taiwan)"]["description"] = "Description";
	$fieldToolTipscertificate_of_origin_items["Chinese (Taiwan)"]["description"] = "";
	if (count($fieldToolTipscertificate_of_origin_items["Chinese (Taiwan)"])){
		$tdatacertificate_of_origin_items[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelscertificate_of_origin_items["French"]=array();
	$fieldToolTipscertificate_of_origin_items["French"]=array();
	$fieldLabelscertificate_of_origin_items["French"]["id"] = "Id";
	$fieldToolTipscertificate_of_origin_items["French"]["id"] = "";
	$fieldLabelscertificate_of_origin_items["French"]["commercial_id"] = "Commercial Id";
	$fieldToolTipscertificate_of_origin_items["French"]["commercial_id"] = "";
	$fieldLabelscertificate_of_origin_items["French"]["item_no"] = "Item No";
	$fieldToolTipscertificate_of_origin_items["French"]["item_no"] = "";
	$fieldLabelscertificate_of_origin_items["French"]["marks_and_numbers"] = "Marks And Numbers";
	$fieldToolTipscertificate_of_origin_items["French"]["marks_and_numbers"] = "";
	$fieldLabelscertificate_of_origin_items["French"]["no_of_packages"] = "No Of Packages";
	$fieldToolTipscertificate_of_origin_items["French"]["no_of_packages"] = "";
	$fieldLabelscertificate_of_origin_items["French"]["gross_weight"] = "Gross Weight";
	$fieldToolTipscertificate_of_origin_items["French"]["gross_weight"] = "";
	$fieldLabelscertificate_of_origin_items["French"]["net_weight"] = "Net Weight";
	$fieldToolTipscertificate_of_origin_items["French"]["net_weight"] = "";
	$fieldLabelscertificate_of_origin_items["French"]["Description"] = "Description";
	$fieldToolTipscertificate_of_origin_items["French"]["Description"] = "";
	$fieldLabelscertificate_of_origin_items["French"]["description"] = "Description";
	$fieldToolTipscertificate_of_origin_items["French"]["description"] = "";
	if (count($fieldToolTipscertificate_of_origin_items["French"])){
		$tdatacertificate_of_origin_items[".isUseToolTips"]=true;
	}
}


	
	$tdatacertificate_of_origin_items[".NCSearch"]=true;

	

$tdatacertificate_of_origin_items[".shortTableName"] = "certificate_of_origin_items";
$tdatacertificate_of_origin_items[".nSecOptions"] = 0;
$tdatacertificate_of_origin_items[".recsPerRowList"] = 1;	
$tdatacertificate_of_origin_items[".tableGroupBy"] = "0";
$tdatacertificate_of_origin_items[".mainTableOwnerID"] = "";
$tdatacertificate_of_origin_items[".moveNext"] = 1;




$tdatacertificate_of_origin_items[".showAddInPopup"] = false;

$tdatacertificate_of_origin_items[".showEditInPopup"] = false;

$tdatacertificate_of_origin_items[".showViewInPopup"] = false;


$tdatacertificate_of_origin_items[".fieldsForRegister"] = array();

$tdatacertificate_of_origin_items[".listAjax"] = true;

	$tdatacertificate_of_origin_items[".audit"] = false;

	$tdatacertificate_of_origin_items[".locking"] = false;
	
$tdatacertificate_of_origin_items[".listIcons"] = true;
$tdatacertificate_of_origin_items[".edit"] = true;
$tdatacertificate_of_origin_items[".inlineEdit"] = true;
$tdatacertificate_of_origin_items[".view"] = true;

$tdatacertificate_of_origin_items[".exportTo"] = true;

$tdatacertificate_of_origin_items[".printFriendly"] = true;

$tdatacertificate_of_origin_items[".delete"] = true;

$tdatacertificate_of_origin_items[".showSimpleSearchOptions"] = true;

$tdatacertificate_of_origin_items[".showSearchPanel"] = true;


$tdatacertificate_of_origin_items[".isUseAjaxSuggest"] = true;

$tdatacertificate_of_origin_items[".rowHighlite"] = true;


// button handlers file names

$tdatacertificate_of_origin_items[".addPageEvents"] = false;

$tdatacertificate_of_origin_items[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatacertificate_of_origin_items[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatacertificate_of_origin_items[".isUseTimeForSearch"] = false;

$tdatacertificate_of_origin_items[".isUseiBox"] = false;



$tdatacertificate_of_origin_items[".isUseInlineAdd"] = true;

$tdatacertificate_of_origin_items[".isUseInlineEdit"] = true;
$tdatacertificate_of_origin_items[".isUseInlineJs"] = $tdatacertificate_of_origin_items[".isUseInlineAdd"] || $tdatacertificate_of_origin_items[".isUseInlineEdit"];

$tdatacertificate_of_origin_items[".allSearchFields"] = array();

$tdatacertificate_of_origin_items[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatacertificate_of_origin_items[".allSearchFields"]))
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "id";	
}
$tdatacertificate_of_origin_items[".globSearchFields"][] = "commercial_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("commercial_id", $tdatacertificate_of_origin_items[".allSearchFields"]))
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "commercial_id";	
}
$tdatacertificate_of_origin_items[".globSearchFields"][] = "item_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("item_no", $tdatacertificate_of_origin_items[".allSearchFields"]))
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "item_no";	
}
$tdatacertificate_of_origin_items[".globSearchFields"][] = "marks_and_numbers";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("marks_and_numbers", $tdatacertificate_of_origin_items[".allSearchFields"]))
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "marks_and_numbers";	
}
$tdatacertificate_of_origin_items[".globSearchFields"][] = "no_of_packages";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("no_of_packages", $tdatacertificate_of_origin_items[".allSearchFields"]))
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "no_of_packages";	
}
$tdatacertificate_of_origin_items[".globSearchFields"][] = "gross_weight";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("gross_weight", $tdatacertificate_of_origin_items[".allSearchFields"]))
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "gross_weight";	
}
$tdatacertificate_of_origin_items[".globSearchFields"][] = "net_weight";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("net_weight", $tdatacertificate_of_origin_items[".allSearchFields"]))
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "net_weight";	
}
$tdatacertificate_of_origin_items[".globSearchFields"][] = "description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("description", $tdatacertificate_of_origin_items[".allSearchFields"]))
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "description";	
}


$tdatacertificate_of_origin_items[".googleLikeFields"][] = "id";
$tdatacertificate_of_origin_items[".googleLikeFields"][] = "commercial_id";
$tdatacertificate_of_origin_items[".googleLikeFields"][] = "item_no";
$tdatacertificate_of_origin_items[".googleLikeFields"][] = "marks_and_numbers";
$tdatacertificate_of_origin_items[".googleLikeFields"][] = "no_of_packages";
$tdatacertificate_of_origin_items[".googleLikeFields"][] = "gross_weight";
$tdatacertificate_of_origin_items[".googleLikeFields"][] = "net_weight";
$tdatacertificate_of_origin_items[".googleLikeFields"][] = "description";



$tdatacertificate_of_origin_items[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatacertificate_of_origin_items[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "id";	
}
$tdatacertificate_of_origin_items[".advSearchFields"][] = "commercial_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("commercial_id", $tdatacertificate_of_origin_items[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "commercial_id";	
}
$tdatacertificate_of_origin_items[".advSearchFields"][] = "item_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("item_no", $tdatacertificate_of_origin_items[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "item_no";	
}
$tdatacertificate_of_origin_items[".advSearchFields"][] = "marks_and_numbers";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("marks_and_numbers", $tdatacertificate_of_origin_items[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "marks_and_numbers";	
}
$tdatacertificate_of_origin_items[".advSearchFields"][] = "no_of_packages";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("no_of_packages", $tdatacertificate_of_origin_items[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "no_of_packages";	
}
$tdatacertificate_of_origin_items[".advSearchFields"][] = "gross_weight";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("gross_weight", $tdatacertificate_of_origin_items[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "gross_weight";	
}
$tdatacertificate_of_origin_items[".advSearchFields"][] = "net_weight";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("net_weight", $tdatacertificate_of_origin_items[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "net_weight";	
}
$tdatacertificate_of_origin_items[".advSearchFields"][] = "description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("description", $tdatacertificate_of_origin_items[".allSearchFields"])) 
{
	$tdatacertificate_of_origin_items[".allSearchFields"][] = "description";	
}

$tdatacertificate_of_origin_items[".isTableType"] = "list";


	

$tdatacertificate_of_origin_items[".isDisplayLoading"] = true;

$tdatacertificate_of_origin_items[".isResizeColumns"] = false;





$tdatacertificate_of_origin_items[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatacertificate_of_origin_items[".strOrderBy"] = $gstrOrderBy;
	
$tdatacertificate_of_origin_items[".orderindexes"] = array();

$tdatacertificate_of_origin_items[".sqlHead"] = "SELECT id,   commercial_id,   item_no,   marks_and_numbers,   no_of_packages,   gross_weight,   net_weight,   description";
$tdatacertificate_of_origin_items[".sqlFrom"] = "FROM certificate_of_origin_items";
$tdatacertificate_of_origin_items[".sqlWhereExpr"] = "";
$tdatacertificate_of_origin_items[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatacertificate_of_origin_items[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatacertificate_of_origin_items[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatacertificate_of_origin_items[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "certificate_of_origin_items";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacertificate_of_origin_items["id"]=$fdata;
//	commercial_id
	$fdata = array();
	$fdata["strName"] = "commercial_id";
	$fdata["ownerTable"] = "certificate_of_origin_items";
		$fdata["Label"]="Commercial"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="id";
				$fdata["LookupTable"]="certificate_of_origin_commercials";
	$fdata["LookupOrderBy"]="";
																			
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "commercial_id";
	
		$fdata["FullName"]= "commercial_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				
		
		$fdata["bAddPage"]=true; 
	
		
		$fdata["bEditPage"]=true; 
	
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacertificate_of_origin_items["commercial_id"]=$fdata;
//	item_no
	$fdata = array();
	$fdata["strName"] = "item_no";
	$fdata["ownerTable"] = "certificate_of_origin_items";
		$fdata["Label"]="Item No"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "item_no";
	
		$fdata["FullName"]= "item_no";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacertificate_of_origin_items["item_no"]=$fdata;
//	marks_and_numbers
	$fdata = array();
	$fdata["strName"] = "marks_and_numbers";
	$fdata["ownerTable"] = "certificate_of_origin_items";
		$fdata["Label"]="Marks And Numbers"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "marks_and_numbers";
	
		$fdata["FullName"]= "marks_and_numbers";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacertificate_of_origin_items["marks_and_numbers"]=$fdata;
//	no_of_packages
	$fdata = array();
	$fdata["strName"] = "no_of_packages";
	$fdata["ownerTable"] = "certificate_of_origin_items";
		$fdata["Label"]="No Of Packages"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "no_of_packages";
	
		$fdata["FullName"]= "no_of_packages";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacertificate_of_origin_items["no_of_packages"]=$fdata;
//	gross_weight
	$fdata = array();
	$fdata["strName"] = "gross_weight";
	$fdata["ownerTable"] = "certificate_of_origin_items";
		$fdata["Label"]="Gross Weight"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "gross_weight";
	
		$fdata["FullName"]= "gross_weight";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=50";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacertificate_of_origin_items["gross_weight"]=$fdata;
//	net_weight
	$fdata = array();
	$fdata["strName"] = "net_weight";
	$fdata["ownerTable"] = "certificate_of_origin_items";
		$fdata["Label"]="Net Weight"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "net_weight";
	
		$fdata["FullName"]= "net_weight";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=50";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacertificate_of_origin_items["net_weight"]=$fdata;
//	description
	$fdata = array();
	$fdata["strName"] = "description";
	$fdata["ownerTable"] = "certificate_of_origin_items";
		$fdata["Label"]="Description"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "description";
	
		$fdata["FullName"]= "description";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatacertificate_of_origin_items["description"]=$fdata;

	
$tables_data["certificate_of_origin_items"]=&$tdatacertificate_of_origin_items;
$field_labels["certificate_of_origin_items"] = &$fieldLabelscertificate_of_origin_items;
$fieldToolTips["certificate_of_origin_items"] = &$fieldToolTipscertificate_of_origin_items;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["certificate_of_origin_items"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["certificate_of_origin_items"] = array();

$mIndex = 1-1;
			$strOriginalDetailsTable="certificate_of_origin_commercials";
	$masterTablesData["certificate_of_origin_items"][$mIndex] = array(
		  "mDataSourceTable"=>"certificate_of_origin_commercials"
		, "mOriginalTable" => $strOriginalDetailsTable
		, "mShortTable" => "certificate_of_origin_commercials"
		, "masterKeys" => array()
		, "detailKeys" => array()
		, "dispChildCount" => "1"
		, "hideChild" => "0"	
		, "dispInfo" => "1"								
		, "previewOnList" => 1
		, "previewOnAdd" => 1
		, "previewOnEdit" => 1
		, "previewOnView" => 1
	);	
		$masterTablesData["certificate_of_origin_items"][$mIndex]["masterKeys"][]="id";
		$masterTablesData["certificate_of_origin_items"][$mIndex]["detailKeys"][]="commercial_id";

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto615=array();
$proto615["m_strHead"] = "SELECT";
$proto615["m_strFieldList"] = "id,   commercial_id,   item_no,   marks_and_numbers,   no_of_packages,   gross_weight,   net_weight,   description";
$proto615["m_strFrom"] = "FROM certificate_of_origin_items";
$proto615["m_strWhere"] = "";
$proto615["m_strOrderBy"] = "";
$proto615["m_strTail"] = "";
$proto616=array();
$proto616["m_sql"] = "";
$proto616["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto616["m_column"]=$obj;
$proto616["m_contained"] = array();
$proto616["m_strCase"] = "";
$proto616["m_havingmode"] = "0";
$proto616["m_inBrackets"] = "0";
$proto616["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto616);

$proto615["m_where"] = $obj;
$proto618=array();
$proto618["m_sql"] = "";
$proto618["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto618["m_column"]=$obj;
$proto618["m_contained"] = array();
$proto618["m_strCase"] = "";
$proto618["m_havingmode"] = "0";
$proto618["m_inBrackets"] = "0";
$proto618["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto618);

$proto615["m_having"] = $obj;
$proto615["m_fieldlist"] = array();
						$proto620=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "certificate_of_origin_items"
));

$proto620["m_expr"]=$obj;
$proto620["m_alias"] = "";
$obj = new SQLFieldListItem($proto620);

$proto615["m_fieldlist"][]=$obj;
						$proto622=array();
			$obj = new SQLField(array(
	"m_strName" => "commercial_id",
	"m_strTable" => "certificate_of_origin_items"
));

$proto622["m_expr"]=$obj;
$proto622["m_alias"] = "";
$obj = new SQLFieldListItem($proto622);

$proto615["m_fieldlist"][]=$obj;
						$proto624=array();
			$obj = new SQLField(array(
	"m_strName" => "item_no",
	"m_strTable" => "certificate_of_origin_items"
));

$proto624["m_expr"]=$obj;
$proto624["m_alias"] = "";
$obj = new SQLFieldListItem($proto624);

$proto615["m_fieldlist"][]=$obj;
						$proto626=array();
			$obj = new SQLField(array(
	"m_strName" => "marks_and_numbers",
	"m_strTable" => "certificate_of_origin_items"
));

$proto626["m_expr"]=$obj;
$proto626["m_alias"] = "";
$obj = new SQLFieldListItem($proto626);

$proto615["m_fieldlist"][]=$obj;
						$proto628=array();
			$obj = new SQLField(array(
	"m_strName" => "no_of_packages",
	"m_strTable" => "certificate_of_origin_items"
));

$proto628["m_expr"]=$obj;
$proto628["m_alias"] = "";
$obj = new SQLFieldListItem($proto628);

$proto615["m_fieldlist"][]=$obj;
						$proto630=array();
			$obj = new SQLField(array(
	"m_strName" => "gross_weight",
	"m_strTable" => "certificate_of_origin_items"
));

$proto630["m_expr"]=$obj;
$proto630["m_alias"] = "";
$obj = new SQLFieldListItem($proto630);

$proto615["m_fieldlist"][]=$obj;
						$proto632=array();
			$obj = new SQLField(array(
	"m_strName" => "net_weight",
	"m_strTable" => "certificate_of_origin_items"
));

$proto632["m_expr"]=$obj;
$proto632["m_alias"] = "";
$obj = new SQLFieldListItem($proto632);

$proto615["m_fieldlist"][]=$obj;
						$proto634=array();
			$obj = new SQLField(array(
	"m_strName" => "description",
	"m_strTable" => "certificate_of_origin_items"
));

$proto634["m_expr"]=$obj;
$proto634["m_alias"] = "";
$obj = new SQLFieldListItem($proto634);

$proto615["m_fieldlist"][]=$obj;
$proto615["m_fromlist"] = array();
												$proto636=array();
$proto636["m_link"] = "SQLL_MAIN";
			$proto637=array();
$proto637["m_strName"] = "certificate_of_origin_items";
$proto637["m_columns"] = array();
$proto637["m_columns"][] = "id";
$proto637["m_columns"][] = "commercial_id";
$proto637["m_columns"][] = "item_no";
$proto637["m_columns"][] = "marks_and_numbers";
$proto637["m_columns"][] = "no_of_packages";
$proto637["m_columns"][] = "gross_weight";
$proto637["m_columns"][] = "net_weight";
$proto637["m_columns"][] = "description";
$obj = new SQLTable($proto637);

$proto636["m_table"] = $obj;
$proto636["m_alias"] = "";
$proto638=array();
$proto638["m_sql"] = "";
$proto638["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto638["m_column"]=$obj;
$proto638["m_contained"] = array();
$proto638["m_strCase"] = "";
$proto638["m_havingmode"] = "0";
$proto638["m_inBrackets"] = "0";
$proto638["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto638);

$proto636["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto636);

$proto615["m_fromlist"][]=$obj;
$proto615["m_groupby"] = array();
$proto615["m_orderby"] = array();
$obj = new SQLQuery($proto615);

$queryData_certificate_of_origin_items = $obj;
$tdatacertificate_of_origin_items[".sqlquery"] = $queryData_certificate_of_origin_items;

$tableEvents["certificate_of_origin_items"] = new eventsBase;

?>
